<?php
namespace app\payment\controller;

use think\Controller;

class IndexController extends Controller
{
    /**
     * 直接返回二维码图片
     */
    public function qrcode()
    {
        $url=input("url");
        require_once '../extend/phpqrcode.php';
        $domain=$this->request->domain();
        header("Content-type: image/png");
        \QRcode::png($url);
        exit;
    }
}
